package com.lovo.boot.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author luo
 * @description 学生数据传输对象
 * @date 2020/11/25 20:20
 */
@ApiModel(value = "学生传输实体")
@Data
public class StudentDTO implements Serializable {
    /**学生编号*/
    @ApiModelProperty(value = "学生编号")
    private String studentId;
    /**学生姓名*/
    @Size(min = 2,max = 10,message = "姓名应该在2位到10位之间")
    @ApiModelProperty(value = "学生姓名")
    private String studentName;
    /**学生性别*/
    @ApiModelProperty(value = "学生性别")
    private String studentGender;
    /**学生电话*/
    @ApiModelProperty(value = "学生电话")
    private String studentPhone;
    /**学生年龄*/
    @Min(value = 1,message = "年龄不能小于1岁")
    @Max(value = 80,message = "年龄不能大于80岁")
    @ApiModelProperty(value = "学生年龄")
    private Integer studentAge;
    /**学生所在班级编号*/
    @ApiModelProperty(value = "学生所在班级编号")
    private String classId;
    /**学生所在班级名称*/
    @ApiModelProperty(value = "学生所在班级名称")
    private String className;







}
